package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_user")
public class UserBean {
    @TableId(value = "pk_userid",type = IdType.AUTO)
    //用户id
    private Integer userId;
    @TableField("u_user")
    //用户名
    private String user;
    @TableField("u_password")
    //密码--默认值
    private String password = "123";
    @TableField("u_name")
    //真实姓名
    private String name;
    @TableField("u_grade")

    //用户权限等级
    private String grade;

    public UserBean() {
    }

    public UserBean(String user, String name, String grade) {
        this.user = user;
        this.name = name;
        this.grade = grade;
    }

    public UserBean(Integer userId, String user, String password, String name, String grade) {
        this.userId = userId;
        this.user = user;
        this.password = password;
        this.name = name;
        this.grade = grade;
    }


    public int getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", user='" + user + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", grade=" + grade +
                '}';
    }
}
